namespace PickGold.Charting
{
	using System;
	using System.ComponentModel;

	internal class LegendConverter : NoNameExpandableObjectConverter
	{
		public override bool GetPropertiesSupported(ITypeDescriptorContext context)
		{
			if (context != null && context.Instance != null && context.Instance is Chart)
				Chart.ControlCurrentContext = context;
			return base.GetPropertiesSupported(context);
		}
	}
}

